package plugin;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

import noyau.Noyau;

public class Plugin {
	private Noyau noyau;
	private static final Logger LOG = Logger.getLogger("noyau");
	
	public void run() {
		LOG.log(Level.INFO, "Lancement de "+noyau.recupererNomVariable(this)+" ("+this.getClass().getSimpleName()+")");
	}
	
	public void init(final Noyau noyau) {
		LOG.log(Level.INFO, "Initialisisation de "+noyau.recupererNomVariable(this)+" ("+this.getClass().getSimpleName()+")");
		this.noyau = noyau;
	}
	
	protected List<Plugin> getPluginsConnectes(final String nomInterface){
		return noyau.recupererPluginsConnectes(nomInterface, this);
	}
	
}
